import { EventEmitter } from "events"

class EventBus extends EventEmitter{
  constructor(){
    super()

    window && window.addEventListener('resize' , ()=>{
      this.emit('resize')
    })
  }
}

export default new EventBus()